{% include file="index.header.tpl.php" %}
{% include file="index.left.tpl.php" %}
 <!--左侧导航结束-->
 <style>
		@media only screen and (max-width: 760px),(min-device-width: 768px) and (max-device-width:1024px)  {
		table, thead, tbody, th, td, tr { 
			display: block; 
		}
		thead tr { 
			position: absolute;
			top: -9999px;
			left: -9999px;
		}
		td { 
			border: none;
			border-bottom: 1px solid #eee; 
			position: relative;
			padding-left:44% !important; 
			padding-top:10px ;
		}
	    #mytable tr{ margin-bottom:20px;}
		td:before { 
			position: absolute;
			top:10px;
			left:8px;
			width: 45%; 
			padding-right:10px;
			white-space: nowrap;
		}
		    td:nth-of-type(1):before { content: "部门名称"; }
			td:nth-of-type(2):before { content: "职位"; }
			td:nth-of-type(3):before { content: "姓名"; }
			td:nth-of-type(4):before { content: "操作"; }
        }		
	</style>
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">人事任命记录表</p>
                    <a href="index.php?a=personnel.appointadd" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
                </div>
                <div class="box-body">
				    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   部门：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="department_id">
							 {%foreach from=$department_lists key=key item=value%}
                                <option value="{%$value.department_id%}"> {%$value.department_name%}</option>
                             {%/foreach%}  
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   职位：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="position_id">
							 {%foreach from=$position_lists key=key item=value%}
                                <option value="{%$value.position_id%}"> {%$value.position_name%}</option>
                             {%/foreach%}  
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 col-xs-12 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   人员：
						  </label>
						  <div class="input-group col-md-8 col-xs-12" style="float:left;">
							   <input type="text" class="form-control" value="" name="staff_name">
						  </div>						  
				    </div>
					<div class="col-md-1 col-xs-12">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
					<div style="clear:both; height:4px;"></div>
                     <table class="table table-bordered"  id="mytable">
                                <thead>
                                    <tr>
                                        <td>部门名称</td>
                                        <td>职位</td>
										<td>姓名</td>
                                        <td>操作</td>
                                    </tr>	
                                </thead>

                                <tbody>
                                    <tr>
                                        <td>{%$department_data.department_name%}</td>
										<td>{%$position_data.position_name%}</td>
										<td>{%$staff_data.staff_name%}</td>
                                        <td>
                                        	  <a href="index.php?a=personnel.appointupdate&appoint_id={%$department_data.appoint_id%}" class="btn btn-warning btn-xs"> 修  改 </a>
											  <a href="index.php?a=personnel.appointdel&appoint_id={%$department_data.appoint_id%}" class="btn btn-danger btn-xs"> 删  除 </a>
                                        </td>
                                    </tr>	
                             </tbody>
                        </table>
                        
				   </div><!--box-body -->
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
{% include file="index.footer.tpl.php" %}

